<template>
	<div>setup 函数</div>
	<!-- 防止全部暴露，可以在setup函数中返回需要暴露的变量 // props, { expose } -->
</template>

<script>
export default {
	setup(props, { expose }) {
		const count = ref(0)
		const msg = ref('setupScript')
		const increase = () => {
			count.value++
			console.log(count.value)
		}
		// expose({
		// 	count,
		// 	msg,
		// 	increase
		// })
		return {
			count,
			msg,
			increase
		}
	}
}
</script>

<style lang="scss" scoped></style>
